﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Win.CSkin.Test
{
    public class SuggestAttribute : Attribute
    {
        private string m_Suggest;

        public string Suggest
        {
            get
            {
                return this.m_Suggest;
            }
            set
            {
                this.m_Suggest = value;
            }
        }

        public SuggestAttribute(string Suggest)
        {
            this.m_Suggest = Suggest;
        }

        //public static string GetEnumSuggest(Enum val)
        //{
        //    FieldInfo field = val.GetType().GetField(val.ToString());
        //    if (field == (FieldInfo)null)
        //        return string.Empty;
        //    object[] customAttributes = field.GetCustomAttributes(typeof(SuggestAttribute), false);
        //    string str = string.Empty;
        //    foreach (SuggestAttribute suggestAttribute in customAttributes)
        //        str = suggestAttribute.Suggest;
        //    return str;
        //}
    }

}
